<template>
  <el-button @click="handleClick">点击</el-button>
</template>
<script setup>

import createPromiseDialog from '@/utils/createPromiseDialog'
import PageD from '@/views/PageD.vue'

const handleClick = async () => {
  try {
    const promiseDialog = createPromiseDialog(PageD)
    const result = await promiseDialog({})
  } catch (error) {
    
  }
}

</script>